//
//  LFLoopViewLayout.swift
//  ImageLoopDemo
//
//  Created by 夏灵烽 on 2025/1/9.
//

import UIKit

class LFLoopViewLayout: UICollectionViewFlowLayout {
        
    override func prepare() {
        setupInfo()
    }
    
    func setupInfo() {
        self.scrollDirection = .horizontal
        self.minimumLineSpacing = 0
        self.minimumInteritemSpacing = 0
        self.itemSize = self.collectionView?.frame.size ?? CGSizeZero
        self.collectionView?.showsHorizontalScrollIndicator = false
        self.collectionView?.isPagingEnabled = true
    }
}
